<template>
  <div style="background-color: #81c4d2;;height: 600px;display: flex;width: 90%"
       :style="{backgroundImage:'url(' + myData.imageUrl + ')',
        backgroundRepeat:'no-repeat',
        backgroundSize:'100% 100%'}">
    <div style="width: 360px;margin: auto;text-align: center;color: white">
      <h1 style="font-size: 50px">{{ myData.title }}</h1>
      <el-button class="button" size="large" type="danger" round>详情</el-button>
    </div>
  </div>
</template>

<script setup>
import bg from "../../assets/img/hero/h1_hero1.jpg"
import {ref} from "vue";

const myProps = defineProps({
  myData: {
    type: Object,
    default: ()=>{
      return {
          "bookId": 1,
          "title": "我是鲁滨逊",
          "imageUrl": "https://img95.699pic.com/photo/40009/0144.jpg_wh300.jpg"
      }
    }
  }
})


</script>

<style scoped>
.button{
  height: 55px;
  width: 125px;
  font-size: 18px;
}
</style>
